<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML>
<html>
<head>
<base href="<%=basePath%>">
<title>墙面审批</title>
<link rel="stylesheet" href="css/vivo.css">
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="js/bootstrap2/css/bootstrap.min.css">
<link rel="stylesheet" href="js/bootstrap2/css/bootstrap-table.css">
<link rel="stylesheet" href="css/common.css">
<link href="js/select2/select2.min.css" type="text/css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="js/webuploader-0.1.5/webuploader.css" />

<script src="js/jquery-1.11.1.js"></script>
<script src="js/bootstrap2/js/bootstrap.min.js"></script>

<script src="js/bootstrap2/js/bootstrap-table.js"></script>
<script src="js/bootstrap2/js/bootstrap-table-zh-CN.js"></script>
<script src="js/select2/select2.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/My97DatePicker/WdatePicker.js"></script> 
<script type="text/javascript" src="js/webuploader-0.1.5/webuploader.js"></script>
<script type="text/javascript" src="js/layui-v2.1.5/layui/layui.all.js"></script> 
<script type="text/javascript" src="js/sharefunction.js"></script> 
<script type="text/javascript" src="js/form.js"></script> 
<!-- 图片放大 -->
<script src="js/postbird-img-glass/postbird-img-glass.js" ></script>
<style type="text/css">
.main-top tr {
	height: 35px;
}
.leftt {
	text-align: center;width: 80px
}
.neirong {
	width: 220px;
}
input[type="search"], input[type="text"] {
	height: 30px;margin-bottom: 0px;width: 200px
}
.mingcheng {
	display: -moz-inline-box;display: inline-block;width: 100px;
}
.select2-container .select2-selection--single {
	height: 30px
}
</style>
<script type="text/javascript">
	$(function() {
		//禁用表单
		hideButton();
		//根据房间类型隐藏字段值
		hideColumn('${wall.roomType}');
		//附件赋值
		getDecorationWallFiles();
		//悬浮提示
		toolTip();
		//修改字段标记记录变量
		<c:set var="marks" value="原数据"/>
	});
	function save(opt){
		var url = "customer/walls/disposeWall";
		var apId = '${requestScope.apId }';
		var exDataId = '${exDataId}';
		var approvalRemark = $("textarea[name='approvalRemark']").val();
		var formData = {
				exDataId:exDataId,
	        	opt:opt,
	        	apId:apId,
	        	approvalRemark:approvalRemark
	    };
		disposeSave(opt,url,formData);
	}
	
</script>
</head>

<body>
	<div class="contentt">
	<form class="cmxform" id="CheckReceiveWallAddForm" method="post">
		<input type="hidden" id="CheckReceiveWallAdd_articleId" >
		<div class="top" style="margin-bottom: 15px">
			<div
				style="border-bottom: 1px solid gray;height: 35px;margin-bottom: 15px">
				<span class="style_btn" style="width:100px;">墙面</span>
				<span style="width: 60px;margin-left:37px;height:30px;line-height:30px;">房屋类型</span>
				<span style="width:60px;height:30px;margin-left:10px;line-height:30px;">
					<select name="roomType" id="roomType" style="width:80px">
						<option value="${wall.roomType}" selected="selected">${wall.roomType}</option>
					</select>
				</span>
			</div>
			<div>
				<span class="style_btn" style="width:100px;">方位</span>&nbsp;&nbsp; 
				<select class="js-example-tags" name="direction" >
					<option value="${wall.direction }">${wall.direction }</option>
				</select>
				<c:if test="${not empty requestScope.map.direction }"><span class="toolTip mark-msg"data-tip="${requestScope.map.direction }">
					<c:out value="${marks}"/></span>
				</c:if>
				<c:if test="${requestScope.map.direction=='' }"><span class="toolTip mark-msg"data-tip="空">
					<c:out value="${marks}"/></span>
				</c:if>
			</div>
		</div>
		<div class="main">
			<div style="width: 100%;" class="main-top">
				<table width="100%">
					<tr>
						<td class="leftt" colspan="2"><span class="style_btn" style="width:100px;">门</span></td>
						<td colspan="2"></td>
					</tr>
					<tr>
						<td class="leftt">门</td>
						<td width="360"><input type="text" name="door"value="${wall.door }" >
							<c:if test="${not empty requestScope.map.door }"><span class="toolTip mark-msg"data-tip="${requestScope.map.door }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.door=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--四壁_门    上传按钮 -->
	    					<div id='filePicker_m' style="display: none">上传</div>
						</td>
						<td class="leftt">门套</td>
						<td width="360"><input type="text" name="doorCase" value="${wall.doorCase }">
							<c:if test="${not empty requestScope.map.doorCase }"><span class="toolTip mark-msg"data-tip="${requestScope.map.doorCase }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.doorCase=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--四壁_门套  上传按钮 -->
	    					<div id='filePicker_mt' style="display: none">上传</div>
						</td>
					</tr>
					<tr>
						<td colspan="2" width="50%">
							<!-- 附件上传 四壁_门。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_m' ></div>
						</td>
						<td  colspan="2"  width="50%">
							<!-- 附件上传 四壁_门套。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_mt'></div>
						</td>
					</tr>
					<tr>
						<td class="leftt"><span class="style_btn" style="width:100px;">窗</span></td>
						<td></td>
					</tr>
					<tr>
						<td class="leftt">窗</td>
						<td><input type="text" name="window" value="${wall.window }">
							<c:if test="${not empty requestScope.map.window }"><span class="toolTip mark-msg"data-tip="${requestScope.map.window }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.window=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--四壁_窗  上传按钮 -->
	    					<div id='filePicker_c' style="display: none">上传</div>
						</td>
						<td class="leftt">窗套</td>
						<td><input type="text" name="windowCase" value="${wall.windowCase }">
							<c:if test="${not empty requestScope.map.windowCase }"><span class="toolTip mark-msg"data-tip="${requestScope.map.windowCase }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.windowCase=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--四壁_窗套  上传按钮 -->
	    					<div id='filePicker_ct' style="display: none">上传</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<!-- 附件上传 四壁_窗。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_c'></div>
							
						</td>
						<td colspan="2">
							<!-- 附件上传 四壁_窗套。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_ct'></div>
    					</td>
					</tr>
					<tr>
						<td class="leftt">护栏</td>
						<td><input type="text" name="guardBar" value="${wall.guardBar }">
							<c:if test="${not empty requestScope.map.guardBar }"><span class="toolTip mark-msg"data-tip="${requestScope.map.guardBar }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.guardBar=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!-- 上传按钮 -->
	    					<div id='filePicker_hl' style="display: none">上传</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<!-- 附件上传 四壁_护栏。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_hl'></div>
    					</td>
    					<td colspan="2"></td>
					</tr>
					<tr>
						<td class="leftt chufangHide weishengjianHide yangtaiHide pingtaiHide chuwujianHide"><span class="style_btn"
							style="width:100px;">电源控制</span></td>
						<td class="chufangHide weishengjianHide yangtaiHide pingtaiHide chuwujianHide" >
							<input type="text" name="powerCtrl" value="${wall.powerCtrl }">
							<c:if test="${not empty requestScope.map.powerCtrl }"><span class="toolTip mark-msg"data-tip="${requestScope.map.powerCtrl }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.powerCtrl=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--电源控制  上传按钮 -->
	    					<div id='filePicker_dykz' style="display: none">上传</div>
						</td>
						<td class="leftt"><span class="style_btn"
							style="width:100px;">电源插座</span></td>
						<td><input type="text" name="powerSocket" value="${wall.powerSocket }">
							<c:if test="${not empty requestScope.map.powerSocket }"><span class="toolTip mark-msg"data-tip="${requestScope.map.powerSocket }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.powerSocket=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--电源插座  上传按钮 -->
	    					<div id='filePicker_dycz' style="display: none">上传</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<!-- 附件上传 四壁_电源控制。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_dykz'></div>
    					</td>
						<td colspan="2">
							<!-- 附件上传 四壁_电源插座。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_dycz'></div>
    					</td>
					</tr>
					<tr class="chufangHide weishengjianHide yangtaiHide pingtaiHide chuwujianHide">
						<td class="leftt"><span class="style_btn"
							style="width:100px;">网络接口</span></td>
						<td ><input type="text" name="networkSocket" value="${wall.networkSocket }">
							<c:if test="${not empty requestScope.map.networkSocket }"><span class="toolTip mark-msg"data-tip="${requestScope.map.networkSocket }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.networkSocket=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!-- 四壁_网络接口  上传按钮 -->
	    					<div id='filePicker_wljk' style="display: none">上传</div>
						</td>
						<td class="leftt"><span class="style_btn"
							style="width:100px;">电话接口</span></td>
						<td><input type="text" name="phoneSocket" value="${wall.phoneSocket }">
							<c:if test="${not empty requestScope.map.phoneSocket }"><span class="toolTip mark-msg"data-tip="${requestScope.map.phoneSocket }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.phoneSocket=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!-- 四壁_电话接口 上传按钮 -->
	    					<div id='filePicker_dhjk' style="display: none">上传</div>
						</td>
					</tr>
					<tr class="pingtaiHide chuwujianHide">
						<td colspan="2">
							<!-- 附件上传 四壁_网络接口。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_wljk'></div>
    					</td>
						<td colspan="2">
							<!-- 附件上传 四壁_电话接口。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_dhjk'></div>
    					</td>
					</tr>
					<tr class="pingtaiHide">
						<td class="leftt chufangHide weishengjianHide yangtaiHide chuwujianHide"><span class="style_btn"
							style="width:100px;">电视接口</span></td>
						<td class="chufangHide weishengjianHide yangtaiHide chuwujianHide"><input type="text" name="tvsocket" value="${wall.tvsocket }">
							<!--四壁_电视接口  上传按钮 -->
	    					<div id='filePicker_dsjk' style="display: none">上传</div>
						</td>
						<td class="leftt"><span class="style_btn"
							style="width:100px;">暖气片组</span></td>
						<td><input type="text" name="heating" value="${wall.heating }">
							<c:if test="${not empty requestScope.map.heating }"><span class="toolTip mark-msg"data-tip="${requestScope.map.heating }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.heating=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--四壁_暖气组片 上传按钮 -->
	    					<div id='filePicker_nqzp' style="display: none">上传</div>
						</td>
					</tr>
					<tr class="pingtaiHide">
						<td colspan="2">
							<!-- 附件上传 四壁_电视接口。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_dsjk'></div>
    					</td>
						<td colspan="2">
							<!-- 附件上传 四壁_暖气组片。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_nqzp'></div>
    					</td>
					</tr>
					<tr class="weishengjianHide yangtaiHide pingtaiHide">
						<td class="leftt"><span class="style_btn"
							style="width:100px;">空调孔洞</span></td>
						<td><input type="text" name="airconditionerHole" value="${wall.airconditionerHole }">
							<c:if test="${not empty requestScope.map.airconditionerHole }"><span class="toolTip mark-msg"data-tip="${requestScope.map.airconditionerHole }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.airconditionerHole=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--四壁_空调孔洞  上传按钮 -->
	    					<div id='filePicker_ktkd' style="display: none">上传</div>
						</td>
						<td class="leftt"><span class="style_btn"
							style="width:100px;">空调位置</span></td>
						<td><input type="text" name="airconditionerSite" value="${wall.airconditionerSite }">
							<c:if test="${not empty requestScope.map.airconditionerSite }"><span class="toolTip mark-msg"data-tip="${requestScope.map.airconditionerSite }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.airconditionerSite=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!-- 四壁_空调位置  上传按钮 -->
	    					<div id='filePicker_ktwz' style="display: none">上传</div>
						</td>
					</tr>
					<tr class="pingtaiHide">
						<td colspan="2">
							<!-- 附件上传 四壁_空调孔洞。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_ktkd'></div>
							
    					</td>
						<td  colspan="2">
							<!-- 附件上传 四壁_空调位置。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_ktwz'></div>
    					</td>
					</tr>
					<tr class="qijushiHide cantingHide chuwujianHide yangtaiHide pingtaiHide">
						<td class="leftt"><span class="style_btn"
							style="width:100px;">热水器</span></td>
						<td><input type="text" name="waterHeater" value="${wall.waterHeater }">
							<c:if test="${not empty requestScope.map.waterHeater }"><span class="toolTip mark-msg"data-tip="${requestScope.map.waterHeater }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.waterHeater=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--四壁_热水器  上传按钮 -->
	    					<div id='filePicker_waterHeater' style="display: none">上传</div>
						</td>
						<td class="leftt weishengjianHide"><span class="style_btn"
							style="width:100px;">油烟机</span></td>
						<td class="weishengjianHide"><input type="text" name="rangeHood" value="${wall.rangeHood }">
							<c:if test="${not empty requestScope.map.rangeHood }"><span class="toolTip mark-msg"data-tip="${requestScope.map.rangeHood }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.rangeHood=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!-- 四壁_油烟机  上传按钮 -->
	    					<div id='filePicker_lampblackMachine' style="display: none">上传</div>
						</td>
					</tr>
					<tr class="pingtaiHide chuwujianHide">
						<td colspan="2">
							<!-- 附件上传 四壁_热水器。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_waterHeater'></div>
							
    					</td>
						<td  colspan="2">
							<!-- 附件上传 四壁_油烟机。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_lampblackMachine'></div>
    					</td>
					</tr>
					<tr>
						<td class="leftt"><span class="style_btn"
							style="width:100px;">墙面装饰物</span></td>
						<td><input type="text" name="wallDecorate"  value="${wall.wallDecorate }">
							<c:if test="${not empty requestScope.map.wallDecorate }"><span class="toolTip mark-msg"data-tip="${requestScope.map.wallDecorate }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.wallDecorate=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!-- 上传按钮 -->
	    					<div id='filePicker_qmzsw' style="display: none">上传</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<!-- 附件上传 四壁_墙面装饰物。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_qmzsw'></div>
							
    					</td>
    					<td colspan="2"></td>
					</tr>
					<tr>
						<td><span class="style_btn" style="width:100px;">墙面装饰</span></td>
						<td></td>
					</tr>
					<tr>
						<td class="leftt">涂料</td>
						<td><input type="text" name="dope" value="${wall.dope }">
							<c:if test="${not empty requestScope.map.dope }"><span class="toolTip mark-msg"data-tip="${requestScope.map.dope }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.dope=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--四壁_涂料  上传按钮 -->
	    					<div id='filePicker_tl' style="display: none">上传</div>
						</td>
						<td class="leftt">壁纸</td>
						<td><input type="text" name="wallpaper" value="${wall.wallpaper }">
							<c:if test="${not empty requestScope.map.wallpaper }"><span class="toolTip mark-msg"data-tip="${requestScope.map.wallpaper }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.wallpaper=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!-- 四壁_壁纸  上传按钮 -->
	    					<div id='filePicker_bz' style="display: none">上传</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<!-- 附件上传 四壁_涂料。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_tl'></div>
    					</td>
						<td colspan="2">
							<!-- 附件上传 四壁_壁纸。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_bz'></div>
    					</td>
					</tr>
					<tr>
						<td class="leftt">软包</td>
						<td><input type="text" name="softRoll" value="${wall.softRoll }">
							<c:if test="${not empty requestScope.map.softRoll }"><span class="toolTip mark-msg"data-tip="${requestScope.map.softRoll }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.softRoll=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!-- 四壁_软包  上传按钮 -->
	    					<div id='filePicker_rb' style="display: none">上传</div>
						</td>
						<td class="leftt">木包</td>
						<td><input type="text" name="woodRoll" value="${wall.woodRoll }">
							<c:if test="${not empty requestScope.map.woodRoll }"><span class="toolTip mark-msg"data-tip="${requestScope.map.woodRoll }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.woodRoll=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--四壁_木包  上传按钮 -->
	    					<div id='filePicker_mb' style="display: none">上传</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<!-- 附件上传 四壁_软包。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_rb'></div>
    					</td>
						<td colspan="2">
							<!-- 附件上传 四壁_木包。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_mb'></div>
    					</td>
					</tr>
					<tr>
						<td class="leftt">玻璃</td>
						<td><input type="text" name="glass" value="${wall.glass }">
							<c:if test="${not empty requestScope.map.glass }"><span class="toolTip mark-msg"data-tip="${requestScope.map.glass }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.glass=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--四壁_玻璃  上传按钮 -->
	    					<div id='filePicker_bl' style="display: none">上传</div>
						</td>
						<td class="leftt">砖材</td>
						<td><input type="text" name="wallBrick" value="${wall.wallBrick }">
							<c:if test="${not empty requestScope.map.wallBrick }"><span class="toolTip mark-msg"data-tip="${requestScope.map.wallBrick }">
								<c:out value="${marks}"/></span>
							</c:if>
							<c:if test="${requestScope.map.wallBrick=='' }"><span class="toolTip mark-msg"data-tip="空">
								<c:out value="${marks}"/></span>
							</c:if>
							<!--四壁_砖材  上传按钮 -->
	    					<div id='filePicker_brickMaterial' style="display: none">上传</div>
						</td>
					</tr>
					<tr>
						<td colspan="2">
							<!-- 附件上传 四壁_玻璃。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_bl'></div>
							
    					</td>
    					<td colspan="2">
    						<!-- 附件上传 四壁_砖材。。。-->
							<!-- 缩略图容器 -->
	    					<div id='list_brickMaterial'></div>
    					</td>
					</tr>
				</table>
			</div>
			<input name="proofreadId" id="entityId_id" value="${id}" hidden="hidden"/>
			<input type="hidden" id="apId" name="apId" value="${requestScope.apId }"/>
			<c:if test="${requestScope.notPassExamine}">
				<!-- 修改时添加变更说明 -->
				<div style="margin:10px;" id="approvalRemark">
					审批意见<textarea rows="3" name="approvalRemark"style="width:70%"></textarea><span style="color:red;">*</span>
				</div>
				<div style="width:100%;text-align:center; padding-top:0px">
					<button class="btn btn-danger radius my-btn"
						onclick="save(0)" type="button">同意</button>
					<button class="btn btn-default radius"
						onclick="save(1)" type="button">拒绝</button>
				</div>
			</c:if>
		</div>
		<!-- main end  -->
		</form>
	</div>
	<!--contentt end  -->
	<script type="text/javascript">
		//展示附件
		function getDecorationWallFiles() {
			var id = '${id}';
			getFileListByFlag(id, "装修验收四壁-门",2, "#list_m",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-门套",2, "#list_mt",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-窗", 2,"#list_c",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-窗套",2, "#list_ct",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-护栏",2, "#list_hl",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-电源控制",2, "#list_dykz",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-电源插座",2, "#list_dycz",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-网络接口",2, "#list_wljk",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-电话接口",2, "#list_dhjk",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-电视接口",2, "#list_dsjk",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-暖气组片",2, "#list_nqzp",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-空调孔洞",2, "#list_ktkd",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-空调位置",2, "#list_ktwz",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-墙面装饰物",2, "#list_qmzsw",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-涂料",2, "#list_tl",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-壁纸",2, "#list_bz",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-软包",2, "#list_rb",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-木包",2, "#list_mb",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-玻璃",2, "#list_bl",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-砖材",2, "#list_brickMaterial",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-热水器",2, "#list_waterHeater",wallImgRemove, imgPlus);
			getFileListByFlag(id, "装修验收四壁-油烟机",2, "#list_lampblackMachine",wallImgRemove, imgPlus);
			<c:if test="${requestScope.notPassExamine}"> 
			//编辑新加的图片数据
			var fileCas=${requestScope.caList};
			if(fileCas.length > 0){
				var m = "";//装修验收四壁-门
				var mt = "";//装修验收四壁-门套
				var c = "";//装修验收四壁-窗
				var ct = "";//装修验收四壁-窗套
				var hl = "";//装修验收四壁-护栏
				var dykz = "";//装修验收四壁-电源控制
				var dycz = "";//装修验收四壁-电源插座
				var wljk = "";//装修验收四壁-网络接口
				var dhjk = "";//装修验收四壁-电话接口
				var dsjk = "";//装修验收四壁-电视接口
				var nqzp = "";//装修验收四壁-暖气组片
				var ktkd = "";//装修验收四壁-空调孔洞
				var ktwz = "";//装修验收四壁-空调位置
				var qmzsw = "";//装修验收四壁-墙面装饰物
				var tl = "";//装修验收四壁-涂料
				var bz = "";//装修验收四壁-壁纸
				var rb = "";//装修验收四壁-软包
				var mb = "";//装修验收四壁-木包
				var bl = "";//装修验收四壁-玻璃
				var brickMaterial = "";//装修验收四壁-砖材
				var waterHeater = "";//装修验收四壁-热水器
				var lampblackMachine = "";//装修验收四壁-油烟机
				for(var i=0;i<fileCas.length;i++){
					if(fileCas[i].articleId == "装修验收四壁-门"){
						m += (","+fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-门套"){
						mt += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-窗"){
						c += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-窗套"){
						ct += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-护栏"){
						hl += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-电源控制"){
						dykz += (","+fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-电源插座"){
						dycz += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-网络接口"){
						wljk += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-电话接口"){
						dhjk += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-电视接口"){
						dsjk += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-暖气组片"){
						nqzp += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-空调孔洞"){
						ktkd += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-空调位置"){
						ktwz += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-墙面装饰物"){
						qmzsw += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-涂料"){
						tl += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-壁纸"){
						bz += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-软包"){
						rb += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-木包"){
						mb += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-玻璃"){
						bl += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-砖材"){
						brickMaterial += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-热水器"){
						waterHeater += (","+ fileCas[i].accessoryCAId);
					}else if(fileCas[i].articleId == "装修验收四壁-油烟机"){
						lampblackMachine += (","+ fileCas[i].accessoryCAId);
					}
				}
				if(m != ""){
					getFileTempList(m.substring(1),"#list_m", wallImgRemove, imgPlus);
				}
				if(mt != ""){
					getFileTempList(mt.substring(1), "#list_mt", wallImgRemove, imgPlus);
				}
				if(c != ""){
					getFileTempList(c.substring(1),"#list_c", wallImgRemove, imgPlus);
				}
				if(ct != ""){
					getFileTempList(ct.substring(1),"#list_ct", wallImgRemove, imgPlus);
				}
				if(hl != ""){
					getFileTempList(hl.substring(1),"#list_hl", wallImgRemove, imgPlus);
				}
				if(dykz != ""){
					getFileTempList(dykz.substring(1),"#list_dykz", wallImgRemove, imgPlus);
				}
				if(dycz != ""){
					getFileTempList(dycz.substring(1), "#list_dycz", wallImgRemove, imgPlus);
				}
				if(wljk != ""){
					getFileTempList(wljk.substring(1),"#list_wljk", wallImgRemove, imgPlus);
				}
				if(dhjk != ""){
					getFileTempList(dhjk.substring(1),"#list_dhjk", wallImgRemove, imgPlus);
				}
				if(dsjk != ""){
					getFileTempList(dsjk.substring(1),"#list_dsjk", wallImgRemove, imgPlus);
				}
				if(nqzp != ""){
					getFileTempList(nqzp.substring(1),"#list_nqzp", wallImgRemove, imgPlus);
				}
				if(ktkd != ""){
					getFileTempList(ktkd.substring(1),"#list_ktkd", wallImgRemove, imgPlus);
				}
				if(ktwz != ""){
					getFileTempList(ktwz.substring(1),"#list_ktwz", wallImgRemove, imgPlus);
				}
				if(qmzsw != ""){
					getFileTempList(qmzsw.substring(1),"#list_qmzsw", wallImgRemove, imgPlus);
				}
				if(tl != ""){
					getFileTempList(tl.substring(1),"#list_tl", wallImgRemove, imgPlus);
				}
				if(bz != ""){
					getFileTempList(bz.substring(1),"#list_bz", wallImgRemove, imgPlus);
				}
				if(rb != ""){
					getFileTempList(rb.substring(1),"#list_rb", wallImgRemove, imgPlus);
				}
				if(mb != ""){
					getFileTempList(mb.substring(1),"#list_mb", wallImgRemove, imgPlus);
				}
				if(bl != ""){
					getFileTempList(bl.substring(1),"#list_bl", wallImgRemove, imgPlus);
				}
				if(brickMaterial != ""){
					getFileTempList(brickMaterial.substring(1),"#list_brickMaterial", wallImgRemove, imgPlus);
				}
				if(waterHeater != ""){
					getFileTempList(waterHeater.substring(1),"#list_waterHeater", wallImgRemove, imgPlus);
				}
				if(lampblackMachine != ""){
					getFileTempList(lampblackMachine.substring(1),"#list_lampblackMachine", wallImgRemove, imgPlus);
				}
			}
			</c:if>
		}
		
		function hideButton(){
			$("#CheckReceiveWallAddForm").find("input").attr("readonly", true);
			$("#CheckReceiveWallAddForm").find("select").attr("disabled", true);
			//锁定上传，同时隐藏按钮
			$("#CheckReceiveWallAddForm div[id^='filePicker']").hide(); 
			$("#CheckReceiveWallAddForm #dw_div").hide();
		}
	  	//图片删除按钮事件 wallArray
		function wallImgRemove(id,_this){
			layer.confirm('删除该图片？',{
				title:'警告',
				icon:0,
				shade:[0.1, '#fff']
			},function(){
				wallArray.push(id);
				//删除指定缩略图
				$("#"+id).remove();
				layer.close(layer.index);
			});
		}
	  	
		//本页面图片放大通用方法,同时隐藏上传按钮与图片删除按钮
		function imgPlus(data){
			$.each(data,function(i,v){
				PostbirdImgGlass.init({
			    	domSelector:"img",
			    	animation:true,
			    	//height:'80%',
			    	myDocument:window.parent.parent.parent
				});
			});
		}
	</script>
</body>
</html>